package com.caojin.propertyInjector;

import java.util.Properties;
import com.caojin.propertyInjector.propertyResolver.PropertiesResolver;

/**
 * 配置信息的获取
 * 
 * @author caojin
 */
public class PropertySearcher {

	private PropertiesResolver propertiesResolver;

	public PropertySearcher(PropertiesResolver propertiesResolver) {
		this.propertiesResolver = propertiesResolver;
	}

	public String searchProperty(String key) {
		Properties props = propertiesResolver.resolveProperties();
		return props.getProperty(key);
	}
}
